package com.example.shirotest.quartz;

import com.example.shirotest.console.Maingeter;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

@Component
public class TestJob implements Job {

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        Maingeter maingeter = (Maingeter)ApplicationContextUtils.getBean("Maingeter");
        maingeter.clearUniqueMap();
    }
}
